function load_content(content_url, method, content_data) {
  $.ajax({
    type: method,
    data: content_data,
    url: content_url,
    success: function(content) {
      $(".content").empty();
      $(".content").append(content);
    }
  });
    
  return false;
}
   
function go_create() {
  return load_content("content/create_form.php", "GET", "");
}

function create_account() {
  var email     = $("#email").val();
  var pass     = $("#password").val();
  var pass_conf  = $("#password_conf").val();
  var dataStr   = 'email='+escape(email)+'&password='+escape(pass)+'&password_conf='+escape(pass_conf);
  
  return load_content("script/user/create.php", "POST", dataStr);
}